How to prevent users from accessing windows xp local account

If this is a corporate environment, and their accounts have no restrictions as to where they can log in, then you can't, short of turning it off and taking the power cord with you. If it's a workgroup environment, then unless they have an account on the desktop, or know the password of one of the accounts, they can't log in.