Catalysis of the reaction: sn-glycerol 3-phosphate + a ubiquinone = glycerone phosphate + a ubiquinol.