The BASICStamp serries uses a programming language called PBASIC. It is supposed to be very similar to BASIC. I'm sure you can find information about servo control and syntax on the internet. Also, if you already have the PBASIC software, then start it, go to "Help" -> "PBASIC Reference". You should find all the commands you are capable of using with your version of the software.