If you use the Doctrine_Manager::connection() method and don't pass any arguments it will return the current connection:
// test.php
// ...
$conn2 = Doctrine_Manager::connection();
if ($conn === $conn2) {
echo 'Doctrine_Manager::connection() returns the current connection';
}