Things I would check
Make sure that the modem drivers you have are XP compatable, and are ones that the manufacturer or chipset designer recommend.
Check your settings for the connection, sometimes your isp likes to set the "disconnect after idle" feature.
Also check you line quality, if the line is 'dirty' the extra line noise can disconnect the modem