In a library database: look for the Digital Object Identifier in the citation, or full record view.
Print (or PDF): the DOI is usually on the first or last page.