Use following one liner code to get the Outbound SMTP Server Address:
SPContext.Current.Web.Site.WebApplication.OutboundMailServiceInstance.Server.Address
Contact Me or Post comments for any technical help related with SharePoint 2010.
A Blog about SharePoint Server 2010, Management Shell (Powershell), SharePoint Designer 2010.