I`m not too familiar with hydrophones and stuff, so this isnt 100% correct what I`m about to say.
Destroyer with that ping-thing (cant remeber name of it) is like a bat, and you are prey. The destroyer sends a sound going thru the water and when it hits you, the sound is mirrored back to the destroyer. So that`s how he know where you are..... i think!