You can withdraw from your 401K anytime but you will have to pay a early withdrawal penalty at the age of 60. The withdrawal will be added to taxable income.
You can start taking withdrawals from the 401(k) plan balance at age 59 1/2 so long as you have stopped working for the employer or an exception applies.