You can start with a cross match here:
RealOEM.com Online BMW Parts Catalog
If it works out you will also find the ratio is different as when your in low gears it will fly but you will lose a few MPH at the top end, I did this years ago with a capri 1300, stuck a 1600 engine in .........not much could touch me off the lights, but I lost about 12mph at top speed.
I would say you should be alright as Ive just put a 740i gearbox in my 735i all I had to change was the rear propshaft coupling at the rear of the box.
__________________
VELVET BLUE UK INDIVIDUAL , IM THE LAST 
UNITED WE STAND DIVIDED WE FALL
I stepped in a plate of Pasta the other day - now I have to worry about my Carbonara footprint!