How do you programmatically access or get a list of domains mapped to an account?

I need to build in varnish cache busting functionality into our multisite, but need a list of the all of the assigned domains, including mapped domains, so that I can make sure the cache is invalidated separately for each.

Is there an accepted method to get this information?