From a layer (or theme) you can get it in this way:
if ($this->template === 'question' && isset($this->content['q_view']['raw']['userid'])) {
$userId = $this->content['q_view']['raw']['userid'];
echo $userId;
}
BTW, I understand you are displaying a question, that's why you said "who asked THE question?"