Hi,
so firstly that is a really nice machine- only change I would suggest is get a larger SSD instead of the HDD as games load / run much better from SSD. The CPU, graphics card etc all really good.
As for the Sims 4- honest answer with all the expansions installed is probably not. That has nothing to do with the computer though, my sister is a big Sims 4 fan and when you install all the expansions the game just gets really sluggish (essentially they kept bolting more stuff onto the game without improving the game engine to cope with it). It doesn't really matter what you run it on, the Sims 4 graphics wise can pretty much run on a suitable advanced toaster- it's the game itself that is just poorly optimised and hasn't been updated to take advantage of modern hardware (really they should make a Sims 5, but isn't going to happen as they closed the Maxis studio a few years ago).
That machine you have selected will run it as well as anything will (especially if you make sure the game is installed on the SSD- which I suggest you might want more ssd storage). Just keep in mind once you add all the expansions the game will run badly (if you use the expansions one at a time it should be ok).