Close any other aplications and keep working only Yahoo Messenger, talk only with your friend ,
Open a command prompt terminal (START -> run -> cmd).
Type : netstat -a
Your friend's ip should be there