Brand shouldn't matter. Same size/speed does help as timing really has an effect on how things run. In some cases, depending on the motherboard, you must have identical pairs installed or it wont work at all.
To de reasonably sure of what your computer can have max, try the
scan tool from crucial.com. In the results from the scan it will give you some more info about the questions you asked, as it pertains specifically to your computer.