There is only one difference between the two. The operating systems. An iMac uses its Apple operating system which is Mac OS X Tiger v10.4 and while Microsoft has its (as you already know) Windows XP SP2.
Hi There,
I have always used a regular computer and I was wondering what are the differences in an IMAC or say an HP computer with Windows XP SP2? Thank You!

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic