You discover the world and its past through the opening cinematic, through brief snatches of dialogue with NPCs (some of whom you may never encounter on your first playthrough) and in item and spell descriptions.
FORBES: The Wonderful Archeology Of 'Dark Souls' Lore