Almost all ships (even some small boats) have a radio to communication and to ask for rescue.
I discovered today that using their callsign (their amateur radio number) you could track its physical position, it is done over this site:
http://shiptrak.org