We determine the compositional distribution with atomic column resolution in a horizontal nanowire from the analysis of aberration-corrected high resolution Z-contrast images. The strain field in a layer capping the analysed nanowire is determined by anisotropic elastic theory from the resulting compositional map. The reported method allows preferential nucleation sites for epitaxial nanowires to be predicted with high spatial resolution, as required for accurate tuning of desired optical properties. The application of this method has been exemplified in this work for stacked InAs(P) horizontal nanowires grown on InP separated by 3 nm thick InP layers, but we propose it as a general method to be applied to other stacked nano-objects.