From startup search box search for Local Security Policy and open it.
Then from security settings browse following.
Account pollicies > Account lockout policy > Account lockout threshold
Then give the value after how many invalid password attempts you want to lock your computer.