How can I connect two monitors to one computer? Do I need a hardware card or can I just use some type of switch?

Thanks in advance