get listed category’s id?

How about get_query_var(‘cat’). I think that should get the ID of the current category.