I don't know if metal detectors are legal but can't imagine a reason why that would be true. I do know that years ago a crowd of us went treasure hunting and we used metal detectors, including ones that could go into the water.

We found silver. Coins, spoons, shoe buckles. And musket balls.