First of all, Install SharePoint 2010 on the web server which you need to connect to the existing Farm. After that run configuration Wizard and mention DB Server and Config DB name of your farm.
Use the Internet Information Services (IIS) Manager