I had one of the same era, a Dimension E510/5150.
You can't use just "any" new graphics card. You are limited to older PCIe cards and those that do not require a PCIe power connector. The power supply is rated at 375 watts.
A "low power" PCIe video card is probably best.
Here is a used, guaranteed, video card that I found on Amazon.
Dell forum member since 2002
Dell Inspiron 15 - 5577 Laptop
Home Built Desktop PC with ASUS ROG Z170, i7 6700K CPU
Windows 10 64 bit Pro and Windows 10 Insider Program Beta Versions. SSD drives. Cakewalk by BandLab and Studio One 4.1 Recordng Studio Software.
Dell S2719dgf Monitor
Member of Nashville based R.O.P.E.