Get correct SMTP mail server for use in eCM

I would like to get settings such as SMTP server and use them when developing addons for eCM 15 .NET. What objects would I use to get these settings?

Thanks,