A 40-year-old man presents with new-onset psychosis, including auditory hallucinations and delusions, for 3 months. There is no prior psychiatric history, and he uses no substances. Physical and neurological examinations are normal. Which investigation is most essential before confirming a primary psychotic disorder?