The website of the Ministry of Foreign Affairs of Spain has a complete list of the addresses of the consulates and embassies in Spain. Visit the page here