The Kibble-Zurek mechanism constitutes one of the most fascinating and universal phenomena in the physics of critical systems. It describes the formation of domains and the spontaneous nucleation of topological defects when a system is driven across a phase transition exhibiting spontaneous symmetry breaking. While a characteristic dependence of the defect density on the speed at which the transition is crossed was observed in a vast range of equilibrium condensed matter systems, its extension to intrinsically driven dissipative systems is a matter of ongoing research. In this Letter, we numerically confirm the Kibble-Zurek mechanism in a paradigmatic family of driven dissipative quantum systems, namely exciton-polaritons in microcavities. Our findings show how the concepts of universality and critical dynamics extend to driven dissipative systems that do not conserve energy or particle number nor satisfy a detailed balance condition