Command and Conquer Generals is offered on the Humble Bundle this week, but are the servers still online for it if the game is purchased through Origin?
C&C Online still hosts servers for this game. Not that many players online (not even a single game running), but there is something that works. According to the site:
C&C:Online supports all 5 Command and Conquer titles affected by the GameSpy server shutdown.
So it seems you are pretty safe for the games to be online.
A screenshot from the site (I just made one) below: