I was wondering if I could program a Wiimote to my computer, and then get it back to the Wii easily.

I know that you can program it to use on the computer, and I want to test it out in a game. But I have to borrow one of my grandma's Wiimotes and I would have to get it to work on the Wii again.

Do I need anything else other than the Wiimote, and a PC? What programs do I need?