There is a command to do it from the command line.
Quoting http://en.kioskea.net/faq/sujet-848-windows-xp-repairing-the-network-connection-using-command-line:
Under Windows XP there is a small feature allowing you to repair a network connection. Go to the Network Connections options in Control panel (Control Panel / Network Connections), right click on the network connection you want and choose the repair option.
It is possible to run the same command by using the Netsh utility, within the following command line:
netsh int ip reset c:\network-connection.log
c:\network-connection.log represents the address of the file in which the reporting will be stored
The netsh int ip ...command allows you to reset the TCP/IP.
With Windows XP Service Pack 2, you can use:
netsh winsock reset catalog
Resetting the socket which manages the TCP/IP. This can be used to handle network problems (browser problem, IP address related problems, etc ...)