You can use the Cypress.config() command.
Cypress.config()
To get baseUrl value use Cypress.config().baseUrl.
baseUrl
Cypress.config().baseUrl