If it whines when the clutch is UP and not when it is DOWN then it's the gearbox, because when the clutch is DOWN the gearbox is dissengaged from the engine and nothing in it is moving hence the whining stops.
The release bearing is under no load until you depress the clutch to release the gearbox from the engine and that is when it will whine.