You can fill in the SWOT on the basis of a brainstorm. You can also do a more thorough SWOT by collecting and entering data about your business and the external environment.
Strengths and weaknesses are internal to the company (e.g. staff competencies, location, reputation, products, patents etc.).
Opportunities and threats are external (e.g. suppliers, distributors, competitors, prices etc.)