To extract thermal energy you need a temperature difference. The way to do it for ocean thermal is with OTEC, which pumps cold water from deep down up to a large heat exchanger at the surface. It's usable for stationary power but I don't think it'd work for a ship, it's bulky and would add a lot of drag. Plus it mainly works in tropical regions.