The installation code for Star Wars: Republic Commando comes with a legitimate copy of the game, usually printed in the manual or on the case. If you've lost it, that's the place to look first.
If you don't own the game, the right approach is to pick up your own copy rather than trying to obtain a code you didn't purchase. Buying it also ensures you get a clean, working, and supported version.