The most practical route is a Sonic fan site with a music archive. Searching for a long-running hub such as Shadow of a Hedgehog will turn up pages hosting soundtracks for most of the series, Sonic R included.
Two things worth knowing before you download. First, official soundtrack releases exist for much of the catalogue and are the better-quality, better-legal option. Second, a fan archive's files are often rips of variable bitrate, and the sites themselves are frequently plastered with misleading download buttons — so check what you are actually clicking.
If you want the music in-game rather than as files, the original Saturn disc is the straightforward answer.