Accessing playlist on connected devices

Is there a way to access a playlist that is on an Iphone or Ipod connected to my Mac? For example, if another person has a playlist on their device, but I want to control it with my MacBook Pro?