Retirement tax questions

Edit: I have been contributing to my ROTH 401K since 2010 and continued to contribute to my ROTH IRA when I rolled it over in 2014. I would only like to use $10,000 to purchase a home this year (2018) but I do not want to be penalized or taxed if I request the money.