Yes you can do it, try kixtart.
ex:
~~~~~~~~~~~~~~
if @wksta = "mypc" goto logoff endif
:logoff
$RC= Shutdown("","",0,1,0)
:end
~~~~~~~~~~~~~~~~~
Apply the login script to specific users and it will shutdown (you can do retstart or log off) "mypc" if certain users login to that PC.