I think the first drive you gave is an IDE type. As far as I can make out from the Dimension 4700 documentation, you just have primary IDE which can take 2 drives and 2xSATA connectors. It should go if you only have one CD/DVD device but it's not really a good plan.
Second one seems fine.