If you know the DEFINITION of the quality factor, you can compute it for any given passive network - of course, also for your example circuit.
Simply calculate the impedance between both nodes and separate it into the real and imaginary part, respectively.