Here is how to copy your iPod Library from your iPhone/iPod Touch to another computer. Guide by Hazed.
# SSH or acces your iPhone/iPod by USB.
# Then browse to var/mobile/Media/iTunes_Control/Music/ (var/root/Media/iTunes_Control/Music/ if your on 1.1.2 or below)
# Inside your going to see a lot of folders, just drag them all across to your computers music folder (or wherever you keep your iTunes library)
# Once complete (It may take 10 minutes or so) open up iTunes and go to File -> Add Folder to Library and choose the folder containing all of those copied folders
# Let it work it’s magic, and if you have enabled iTunes to organize your music for you (under Edit -> Preferences -> Advanced) your music will have been added to your iTunes library and will be fully organised and renamed
# Your done!
Original Post: HERE