How can ai get from VB the SQL Server version and SP intalled?

Thanks.