1. Read YM API documentation here
http://developer.yahoo.com/messenger/guide/2. Use HttpWebRequest to send API command and receive API result
The API is a REST, that means you can handle it like common URL. You can even access the API directly from your browser.
Thx
~jimmi