Your Gtx8800gt runs on the PCIE bus, thus a 1050 would be compatible as well. Your platform (socket 775) is quite outdated and your dual core would bottleneck the Gtx1050. I would advise against upgrading the GPU as it will not be a balanced system. It's best to save up an build a new machine.
Hope this helps!