On an “author” page get_query_var('author')
will give you the ID.
get_queried_object()
will get you considerably more author information.
$author = get_queried_object();
echo $author->ID;
// var_dump($author); // to see all of the information available.
For retrieving custom author data follow the Codex.