Yeah, there are a few programs out there to do this..
I had a webcam setup on my frag tank, and set it to take a picture every minute, unfortunately one fine summer afternoon while doing a water change, I tripped and dumped a couple of gallons into the computer the webcam was hooked up to...