How can I tell which site uses which database?
Big giveaways will be in the variable table, especially the two rows with the names:


site_mail
site_name


As hopefully these are different for each one of your sites.

Perhaps this database query can help you:

SELECT * from variable WHERE name LIKE 'site_%';