It's probably possible to make a plugin that gets the IP from netstat when you type a Plus! command...
You could use the netstat -o argument to determine which connections are from Messenger, then use some kind of logic to rule out the standard connections (probably ignore *.msn.com and *.hotmail.com). You'd be left with connections to contacts. Their IPs could be parsed, then returned without the user ever leaving the conversation window or looking at an ugly command prompt.