Answered: Pneumatics Tanks as Ballast?

Is it legal to have all 12 motors on a robot, and use empty pneumatic tanks as a counterweight with no other function?

No, this is not legal. Let’s take a look at R11, quoted here for reference and bolded for emphasis:

Pneumatic tanks, even if they are empty, are still considered pneumatic components.