I would like to control that one registered user can't

Hi

I would like to control that one registered user can't loggin more that once at the same time.

I want a registered user can't loggin from two or more devices at same time.

Is it possible lock the user account until the user loggout?