I feel you there. For the best part of the last five years I've been commuting 3-4 hours on top of a typical 8 hour working day.
I guess it depends on your situation. I was fortunate enough to spend most of that on the train and typically able to get a seat so usually able to code, and always at the very least read, so I managed to make use of this time.
Other than that, I've put plenty of weekends into my projects too.
As Steve said, if you're passionate enough about it you'll find a way.