Read this article, which describes how to analyze an external environment and create a SWOT analysis.