Probing spin and orbital Kondo effects with a mesoscopic interferometer