Guitar Hero vs. Rock Band Instruments on PS2: Not Compatible
No, you cannot use Guitar Hero guitars for Rock Band on PS2.
Why They're Incompatible
Different button layouts: Guitar Hero uses 5 fret buttons; Rock Band uses 6 (including the solo buttons).
Different hardware protocols: Each series communicates with the console differently.
Software locks: Rock Band does not recognize Guitar Hero controllers.
Even though they look similar, they function as completely different instruments. You must buy Rock Band-branded guitars, drums, and microphone to play Rock Band on PS2.