This is the min spec for Sims 4:
CPU: Intel Core 2 Duo E4300 or AMD Athlon 64 X2 4000+ (2.0 GHz Dual Core required if using integrated graphics)
CPU Speed: Info
RAM: 2 GB
OS: Windows XP
Video Card: NVIDIA GeForce 6600 or ATI Radeon X1300 or Intel GMA X4500
Sound Card: Yes
Free Disk Space: 10 GB
Your RAM and GPU will do the job, but the CPU is scraping it. You should be able to play on minimum settings.
Personally I would get a copy of Sims 3, still a great game and it will run much better on your laptop.