Get current taxonomy id in archive page

get_queried_object()->term_id; 

Will display the current taxonomy id in archive page.

get_queried_object();

provide full details regarding the current taxonomy.