Constraining the Circumburst Medium of Gamma-Ray Bursts with X-Ray Afterglows