Guitar Hero II has no built-in cheat code system. Unlike Guitar Hero III (which added "Cheats" menu via Konami code at main menu), GH2 only unlocks content through normal progression.
The PC port (Guitar Hero II 2007) supports community tools:
No cheats. No Action Replay codes work reliably (game crashes). Play the game—it's the best way to improve.