You cannot drive directly from Denver to Washington, D.C. because no continuous road connects them without passing through other states—but you absolutely can drive the ~1,600 miles via I-70/I-76/I-80/I-76/I-70/I-68/I-70 etc. The original answer was incorrect: a road network exists. Driving takes ~24 hours nonstop; most split over 2–3 days.
Flying (DEN→DCA/IAD/BWI) takes ~3.5 hours. Choose based on time, budget, and preference.