Is this software is possible? and in what language?
With C++ you can write anything you want, but if you want to detect something outside, I think you need to focus on the hardware that can do the detection. If you are a webguy, maybe you you can focus on retrieving weather information from weather sites to base your thunder predictions on.