Unfortunately, exceptions to the penalty for early withdrawal for education expenses are available for IRA's, not 401K's.
https://ttlc.intuit.com/replies/3928999