Before the Raspberry Pi came out, one cheap and easy way to get GPIO on a computer with a real operating system was to manipulate the pins on an old parallel port, then most commonly used for printers ...
You don't need fancy hardware to get started on your coding journey. A low-spec computer will likely be more than you need to ...