Wake up. Apps for this already exist. Don't remember their names. Google it for solutions that exist now.
Found it: RemotePC Remote Access for iPad only and it's FREE.
\tJumiAmp Lite Remote Control for iTunes & WinAmp music & video play for all 3 iOS devices. FREE too.
Updated: Nov 23, 2010
92 Ratings for iPhone, iPod Touch & iPad
\tJumiOne - Desktop/Remote/Keyboard/Mouse, Remote Webcam & Media Remote for PC $3.99...