Go to Add/Remove programs in Control Panel.
On the left side, click "Add/Remove Windows Components"
Place check by "Internet Information Service IIS"
Click Next and follow prompts.
If you have Windows XP Home, IIS is not licensed for Windows XP Home
and you need to upgrade to Windows XP Pro or use a 3rd party option:
http://www.apache.org/