I believe that you are looking for the iPod Library Access Programming Guide, which describes the new features in iPhone OS 3.0 for playing music, video, and even audio books from the user's iPod library on their device. Take note of their one caution in that guide:
iPod library access works only on
devices and not in the Simulator. This
is because the Simulator has no access
to a device’s iPod library. To develop
applications using the classes in this
technology, you need a provisioned
iPhone OS device.
Apple's AddMusic sample application shows how this works.