In general, you will decide what your “minimum spec” is, and you will have at least one piece of hardware that is that minimum spec. You will then regularly test and profile release builds on that piece of hardware, to make sure it meets whatever your bar is. For fancier games, you will have more kinds of hardware, perhaps for each major generation of graphics and CPU hardware. For consoles, there’s also the console tech cert to consider.
It is generally not the case that one develops a game, and then one goes to measure “where does this game run OK?” Almost always, if you do that, it ends up being “my development machine is pretty much the minimum spec.”
To develop low-end games on UE5, use the “forward renderer” pipeline, and don’t use Lumen or ray tracing.