You can pick up Star Wars: Knights of the Old Republic for PC at just about any retailer that has it in stock. Since it's a beloved classic, it's widely available both in physical form and through digital storefronts.
Checking major online shops and digital game platforms is a reliable way to find a copy. However you choose to buy it, you're in for one of the most acclaimed RPGs set in the Star Wars universe.