SQL Server versions

How to determine the version and edition of SQL Server and its components