Basic online psu calculator recommended psu is 376w for 5600xt, i5-10400, 32gb ram, nvme + sata ssd, dvd. 6600xt and 5600xt TDP are quite similar.  your 500w psu is more than enough.
I have xps 8940 cpu:i5 10400 with 500w PSU. could I upgrade it to 6600xt graphics card? now I just using uhd 630. thanks again!
XPS 8940, could I upgrade to Radeon RX 6600 XT?