The answer is S/PDIF — Sony/Philips Digital Interconnect Format.
S/PDIF is the standard used for carrying digital audio between consumer devices and a computer, which is exactly the job you are describing. It appears in two physical forms: a coaxial connection over an RCA-style jack, and a TOSLINK optical connection using a square fibre-optic connector. Both carry the same underlying format; they just differ in the medium.
The reason S/PDIF is the correct answer rather than something like USB or HDMI is that it is specifically an audio interconnect designed for this class of equipment. HDMI can carry audio, but it is a video interface first. S/PDIF exists to do this one thing.
The practical advantage of the digital path is that the signal stays digital all the way to the receiving device, so there is no analogue degradation along the cable. If your PC and your player both have S/PDIF, that is the connection to use.
(Reference: A+ Guide to Managing Hardware, p. 435.)