One code that circulates for Star Wars: Battlefront II is a directional sequence: up, up, up, left, down, down, down, left, up, up, up, left, right.
This is said to grant unlimited health. As with many older cheat codes, results can vary depending on the version and platform, so give it a try and see if it works for you.