Play Friends iPhone / iPod Touch Library with iTunes 10

Now in iTunes 10 you can play your iPhone music library over the dock connector, handy when visiting friends or playing your personal library on your work computer!

Just click on Music under your iPhone in the Devices sidebar.
iTunes iOS Sharing Screenshot