1) The two USB pins on the STM32 can be used either as USB, USART1, CAN, TIM1 or GPIO. If you want to use it as USB, you have to connect them to the D+ and D- pins on the USB connector.
2) The two other pins on the USB connector is +5V and Ground - you could check this schematic which also shows the USB connection:
Low Speed = 1.5 Mbit/s Full Speed = 12 Mbit/s High Speed = 480 Mbit/s Whatever Xtra Speed = 5 Gbit/s STM32F102, 103 is only Full Speed device (must connect to Host or OTG), the F105, 107 is a Full Speed device and FS/LS host (or OTG) Hw to start? Download the USB developer kit from