Anisotropic finite-size scaling analysis of a three-dimensional driven-diffusive system