Continuous advance in the potential of fabrication and utilization of nanostructures for different applications requires an adequate tool for such structures' analysis and characterization. Investigation of light scattered by nanostructures by means of computer simulation seems to be a reliable tool for investigation of the properties and functional abilities of nanostructures. In particular, nano-features embedded in layered structures are of growing interest for many practical applications. Mathematical modeling of light scattering allows us to predict functional properties and behavior of nanostructures prior to their fabrication. This helps to reduce manufacturing and experimental costs. In the present paper, the Discrete Sources Method (DSM) is used as a tool of computational nano-optics. Mathematical models based on DSM are used for several practical applications. We are going to demonstrate that the computer simulation analysis allows not only prediction and investigation of the system properties, but can help in development and design of new setups.