Can we test the state of our mind in a lab?

In the following video, Mingyur Rinpoche explains his experience in a lab testing his mental states by researchers. I wonder it is possible to do it.

To some degree, yes. fMRI is used among other techniques.

with metta