Not very clear what you want. You can see who is connected to your Mac with this Applescript:
tell application "Terminal"
if not (exists window 1) then do script ""
do script "netstat -na | grep 548" in front window
end tell
However, that only reports AFP port connections.
You can see who is connected to your iTunes with this script:
tell application "Terminal"
if not (exists window 1) then do script ""
do script "lsof -c iTunes -a -i" in front window
do script "arp -a" in front window
end tell