Code:
USE H: "\\LRSFPS01\"+%USERNAME%
If @ERROR=99 $=LogOff(1) EndIf



You will need to find out what error code is returned when the connection limit is reached and replace the "99".

You could check for *any* error, but then the user would be logged off if for example the share was unavailable for some reason.