You cannot use a Guitar Hero 2 PS2 guitar on Rock Band for Xbox 360.
You need an Xbox 360-compatible Rock Band guitar to play on that console.