This won't work. The ball moves with the same horizontal velocity as the ship, so it lands right on the same spot on the ship from which is was released. This won't help you to tell whether the ship is moving relative to the water.