Supporting son with his two sons

my son moved in with me as well as two grandson's. He had been working but didn't work outside the home all of 2016. Single parents and grandson's (my son helps to care for his grandma with dementia who is here a considerable amount of time) The question is how do I claim my grandson's?