Turn your webcam on, point your remote control at the camera and press a few buttons.
I recently had to do this to figure whether a new remote was working or not. Worked a treat.
I believe CMOS sensors can also do this. Infrared photography isn't too difficult, as long as you remove the infrared-removal filter in front of the sensor.