You can easily get the name of a Doctrine_Connection instance with the following code:
// test.php // ... $conn = Doctrine_Manager::connection(); $name = $manager->getConnectionName($conn); echo $name; // connection 1