How to know if mysql server is using sha_256 or caching_sha_256 authentication plugin?
When you have a connection, (ref SHOW CREATE USER),
show create user {user}

will how you the plugin used for any specific user.
SHOW GLOBAL VARIABLES LIKE 'default_authentication_plugin'

will show which authentication is used for created users if none is specified. ref