Yes. Voltage sensing relays can be found at Grainger Industrial Supply
and other electrical
device purveyors. They are low current
devices, and can be used to control high current
capacity contactors to prevent connection of the wrong voltage. They can also be used in conjunction with a multi-tap transformer, and contactors, to provide proper voltage. In the USA 208 volt and 240 volt docks are both quite common. Such equipment
can automatically give you the proper voltage from either source.
You need to know the various voltages as well as frequencies (50 or 60 Hz) that you will encounter, and have equipment
that can handle the range of power supply parameters.
If such components are failing on your boat they are not rated for the current, voltage, or frequency that are being applied.