How do I transfer my entire itunes library (retaining the original music playlists) from my iPad iOS 5.1
You don't move your Music from the iPad to the new computer, you copy your entire iTunes library from your old computer to your new computer and then re-sync your iPad to the new computer.

Here are the Apple instructions:
http://support.apple.com/en-us/HT4527