getting hotmail email address? (from MSN messenger)

Does anyone know how to get the email address/username for MSN messenger on
the system, I'm making a program to replace my messenger, possible coincide
with it

As Always All Help Appreciated

Dan

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/07/02