Depends on what skin you have. If you know the server name, just go to your command prompt/shell and type 'ping' followed by the server name and it should give you the ip. My post is in reguards to "web host manager"

disadvantage is some times you have to log into the WHM and go to list accounts and click fetch cvs to rebuild this file...

other wise you can write a script that runs thru the /etc/userdomains finds the doman, then grabs the username, then opens /var/cpanel/user/username and use regex to strip the IP= line out.... then split it and walaaaa