It depends on the computer.
Most of the time you will have to add an internal graphics card with 2 video ports on it. Make sure the graphics card supports dual monitors. You can pick one up online for as low as $30. There are many different kinds of card, so you will need to know the specs on the computers motherboard.