osu! can run on pretty much anything made within the last 10 years. That doesn't necessarily mean it will run well though.
4GB of ram should be enough assuming you don't plan on running the game with a ton of other applications at the same time. The main thing you'll want is a decent graphics card/GPU.