Determine the category that an archive-page is for

the ID of the current category will be available in the cat query var:

get_query_var('cat');