You are allowed to pull part or all of your 401K. However, on top of having to pay income taxes at your current rate, you will owe a 10% penalty to the IRS.
Check your company's policy first. You should be able to withdraw funds. They usually take 33% taxes of the amount you withdraw then will send you a 1099.