First of all, you need to know what motherboard you have.
If you still have your motherboard user's manual (if it even came with the computer), there should be a graphical chart that shows you exactly where all those things go.
If not, google it. Might be able to find something.