Can you connect stereo speaker wires to a computer via the headphone jack?

Technically, yes. However, a headphone jack does not provide a great deal of power, so you would probably need an amplifier for the sound output to actually be audible.