Scaling of a long-range interacting quantum spin system driven out of equilibrium