Here are several smoother rewrites:
Option 1 (Clear and Direct)
We employ two distinct datasets capturing FDI stock and CO2 emissions at both country and regional levels.
Option 2 (More Academic/Formal)
Our analysis draws on two primary data sources that provide FDI stock and CO2 emissions data at multiple spatial scales: country-level and regional-level observations.
Option 3 (Emphasis on Spatial Resolution)
To capture spatial heterogeneity, we utilize FDI stock and CO2 emissions data from two sources, each offering observations at both national and subnational scales.
Option 4 (Methods-Focused)
We compile data on FDI stock and CO2 emissions from two sources, allowing analysis at both country and regional levels of aggregation.
Option 5 (Most Detailed)
Our empirical analysis relies on two complementary datasets: one providing FDI stock measures and another capturing CO2 emissions, with both sources offering data at country and regional levels.
All of these options eliminate the awkward "by discriminating between" phrase and make the sentence flow more naturally. Choose based on whether you want to emphasize the multi-scale nature of the data (Option 3), the methodological approach (Option 4), or simply state the facts clearly (Options 1 and 2).