1. A method for controlling an electronic device, the method comprising: obtaining at an electronic device, an image set including a plurality of images corresponding to an external space surrounding the electronic device; identifying, from at least one of the plurality of images, an area corresponding to an object provided in the external space; obtaining information relating to the object based on whether the object is configured to communicatively connect with the electronic device; and displaying the information relating to the object on a display.