I think most of them are old and have pretty simple electronics, i.e. just a IR LED in the gun and a photodiode at the target(s) that picks up the light beam from the gun. Just like a TV and remote except for that it probably is just an short on/off signal from the gun, not a serial burst as from the remote controller.
Should be pretty simple and fun to build =)