If I use the contributed portion of my Roth 401k to pay for tuition, will I avoid the both the early withdrawal penalty and the ordinary income on the early withdrawal?

- No longer with the employer since leaving for school

- The Roth 401k account was started 5 years ago (not all dollars contributed are necessarily 5 years old)