Benedict Anderson's Imagined Communities is a classic for this one I think. Give it a go!
Timothy Snyder's The Reconstruction of Nations is an interesting look at the development of various identities on the territory of the Polish-Lithuanian Commonwealth. Serhii Plokhy's The Origins of the Slavic Nations looks at pre-modern East Slavic identities.