On a discretization of confocal quadrics. I. An integrable systems approach