Query parsing only author ids

Assuming that you have an array of post objects in $my_posts

$authids = array_unique(wp_list_pluck($my_posts,'post_author'));

What you will get are the post authors for the current page of posts, not the post authors for all of the posts. If you want the authors for all of the posts you will have run another query.

To run a new query based on the main query in $wp_query

$this_query = array_unique($wp_query->query_vars);
$this_query['posts_per_page'] = -1;
$new_query = new WP_Query($this_query);

$authids = array_filter(wp_list_pluck($new_query->posts,'post_author'));
var_dump($authids); // debug

I caution you against this. You could be querying hundreds or thousands of posts. That could be very inefficient or even cause server failures, depending on the server and the load. I am almost certain that there is a better way to do this if you think it through and alter your architecture.

Reference:

http://codex.wordpress.org/Function_Reference/wp_list_pluck
http://php.net/manual/en/function.array-filter.php