Multi-DB, How do I get the DB name a site is located in?

Aside from connecting to each and every database, most of which are empty as less than a dozen sites are on the network, is there a simpler method of identifying which database a site's data belongs to?