Function to return the mapped domain name?

Is there a condition and/or function I can use as a developer to get or return the domain the user mapped to a subdomain site on my network?

Ideally...
if mapped domain exists { echo get_mapped_domain($blog_ID); }