Similar to some of the other plumbing leak detecting systems already mentioned. Doesn't address the issue of flooding from external source (rain, sump pump, etc).

http://www.watercop.com/

Sensor detects water (e.g. on floor near washing machine) and sends signal to electronic valve on water supply.