Yes. You will receive a 1099R for the money you took out of the 401k which must be entered on your tax return. That you gave it as gifts to your grandchildren is not relevant. Gifts to individuals are not deductible.
To enter your retirement income, Go to Federal> Wages and Income>Retirement Plans and Social Security>IRA 401 k) Pension Plan Withdrawals to enter your 1099R.