1. Right click on My Computer icon on your desktop and Click Properties.
2. System Properties window will appear. Select Computer Name tab and click Change to change computer name and workgroup. As an option you can also enter a computer description.
3. Enter your new Computer Name and workgroup, and Click OK.
4. System will prompt you to restart computer. Click OK and restart your computer in order for the changes to take effect.
5. After computer is restarted, go to System Properties window again and check whether the new changes are active.
article source:http://pc-level.com/2010/03/how-to-set-up-computer-name-and-workgroup-in-win-xp/