I have used this function with much success:

SReg()

Not sure about searching the ENTIRE registry though, might be a bit if a strain but give it a shot.

-Shawn