Detecting lightning automatically isn't that hard-- it's a sudden burst of powerful, wideband static. There are several sites where users collaboratively trilaterate lighting strikes by sharing precise time-of-arrival data-- including live maps! http://en.blitzortung.org/live_dynamic_maps.php?map=11
The process is fast enough that in a thunderstorm, you'll probably get a packet specifying the lightning's coordinates before you hear the thunder!
Here's what the storm looked like: http://i.imgur.com/mkIqnlD.gif