Quote from Wiki:
A flash of lightning, followed after some time by a rumble of thunder illustrates the fact that sound travels significantly slower than light. Using this difference, one can estimate how far away the bolt of lightning is by timing the interval between seeing the flash and hearing thunder. The speed of sound in dry air is approximately 343 m/s or 1,127 ft/s or 768 mph (1,236 km/h) at 20 °C (68 °F). This translates to 0.213 miles per second or about 5 seconds per mile; however, this figure is only an approximation.
The speed of light is high enough that it can be taken as infinite in this calculation because of the relatively small distance involved. Therefore, the lightning is approximately one kilometer distant for every 3 seconds that elapse between the visible flash and the first sound of thunder (or one mile for every 5 seconds). In the same five seconds, the light could have traveled the Lunar distance four times. (In this calculation, the initial shock wave, which travels at a rate faster than the speed of sound, but only extends outward for the first 30 feet, is ignored.) Thunder is seldom heard at distances over 20 kilometers (12 mi). A very bright flash of lightning and an almost simultaneous sharp "crack" of thunder, a thundercrack, therefore indicates that the lightning strike was very near.
'But since we don't know the origination point of the lighting and how long it took to get to me...can we really know the distance where the lighting occurred?'
I guess the distance is irrelevant because on considering light speed to be infinite, the distance will be traversed in 0 seconds (That is to say,- Since only approximations are required, you can simplify the problem down to the quote from wiki. You're right only in case of desire of extremely high precision calculations, which I guess is not necessary here...)