You will be taxed on the amount you withdraw as a hardship withdrawal. In addition to standard income taxes, you will most likely have to pay a 10% penalty.