You win it by fishing at Breakwater Beach, but you need the rod first.
Head into the water from the beach entrance and wade out as far as you can until you reach the broken boat. If you have the Ghost Ray Power, use it on the boat and the fishing pole is yours.
With the rod equipped, fish for a while. The diving helmet is a random reward from the fishing pool rather than a guaranteed catch, so it may take a fair number of attempts before it drops.
If you are not getting bites at all, check that you are standing in the right spot near the boat, since the fishing area is fairly specific.