There are various ways of detecting. Firstly the submarine's sonar can detect ripples caused by an helicopter.
But modern techniques allow submarines to use torpedo launched UUV's, these UUV's could for instance use optical to detect overflying helicopters / planes
But modern techniques allow submarines to use torpedo launched UUV's, these UUV's could for instance use optical to detect overflying helicopters / planes