According to specifications listed on Sony Vaio Support, the Vaio VGC-RA840G desktop computer uses a SATA harddrive.
http://esupport.sony.com/US/perl/model-documents.pl?mdl=VGCRA840G[Left-click on Marketing Specifications]
If you have four SATA headers on your motherboard, you can plug your SATA harddrive into any one of them.
The beauty of SATA is that once you plug into any SATA header, BIOS will find the harddrive. Doesn't matter which SATA connector. (Connector on a motherboard is referred to as a Header)
Photo of an average SATA header on a motherboard,
http://en.wikipedia.org/wiki/SATA[Photo at top right of page. SATA header for this example is Red. Can be any color]
If you have any further questions concerning this, please post in a Comment.
JCV