The only way I can think of is to use a Skype Resolver to first find the IP based on the user's Skype name and then get that IP and use an API to trace and locate that IP.
This is just a suggestion based on what I think you could do, it might be wrong, and if it is, someone please correct me. Good luck with your program!