Autoplay is very useful, but can also be a security risk.

To turn it on or off:
1. Open gpedit.msc from the run box from the start menu.
2. Navigate to Computer Configuration > Administrative Templates > System
3. Find Turn off autoplay

More Cool Windows XP tips & tricks HERE