When Snape and Harry first make eye contact, Harry’s scar starts burning. As it so happens, this moment is also the one in which Professor Quirrell has Voldemort’s face pointing in his direction.
Now, Snape notices that Harry’s scar is burning, and he then looks right at Quirrell and begins to suspect that he may be working with the dark lord.