Recovering your iTunes library from your iPod or iOS device: Apple Support Communities
For iTunes purchases:
iTunes Store: Transferring purchases from your iOS device or iPod to a computer
In iTunes 11 use Control+B to show the Menu bar then go to iTunes>File>Devices>Transfer Purchases
Retrieving data ...