Determining the core stratification in white dwarfs with asteroseismology