Online Covariance Estimation in Nonsmooth Stochastic Approximation