Study of the Three-dimensional Coronal Magnetic Field of Active Region 11117 around the Time of a Confined Flare Using a Data-Driven CESE-MHD Model