Hi Saravanan,
I just looked at the PERL + Java API docs, and unfortunately , I couldn't find any API to be able to retrieve all domain based on the userdirectory UID.
I also checked if this is possible to lookup using XPSExplorer and can't find an option there as well.
I suggest you to to submit an enhancement request in our ideation website for this:
Regards,
Ujwol Shrestha