Retirement tax questions

Correct ... the exemption is ONLY for an IRA .   The first time home buyer may have been the excuse the 401K needed to release the funds but it will not do anything for you on an income tax return.