When sending messages with Winsock you usually pass SMTP server name or IP to the procedure. Was it your question?
In case you want to retrieve this from Outlook Express settings -- this is Windows Registry:
HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\...