"I was able to see how the students did their homework" is correct.
"I was able to see how the students do their homework" is also correct, as long as you weren't talking about that specific point in time and the students still do their homework the same way.