If you are concerned about the wellbeing of a student, it's okay to ask.
It’s often a relief to students to know that people at the university notice and care.
Whether you or a student broaches the topic, it is important to have privacy and some time without interruption.