How do I use MariaDB instead of MySQL?
MariaDB is a drop-in replacement for MySQL. No changes are required.

You'll obviously need to update your connection/credential details to match the new server, but as far as configuring Drupal to use MariaDB, there's nothing to do.