if you bought all the music on the iphone through itunes then it will transfer all the songs to the new pc and u wont lose anything. same thing with games, apps, and ringtones.
the calendar, contacts everything will sync with the pc and you wont lose those either.
~k.