Control and readout of current-induced magnetic flux quantization in a superconducting transformer