Through SSMS:
1. Right click the database mail icon and choose configure Database mail.
2. Choose Manage Databse Mail accounts and profiles and click next.
3. Choose View, change, or delete and existing account, then choose next.
4. The server name listed will be your SMTP server.
Through a query:
EXECUTE msdb.dbo.sysmail_help_account_sp;