You might be able to DIY something rudimentary with the ping echosounder: https://www.bluerobotics.com/store/sensors-sonars-cameras/sonar/ping-sonar-r2-rp/
As far as getting an absolute position underwater the most affordable off the shelf option is the Water Linked system.
See also: ROV and AUV Localization an Introduction