32-bit versions of Windows XP can't use more than 3Gb of pyhsical memory, or 4Gb if you set some switches. Windows Vista 32-bit will allow you to see 4Gb. If you want to use all of your memory then you'd need to switch to 64-bit version.
See:
http://msdn.microsoft.com/en-us/library/aa366778.aspx