In public domain, downloadable scores from IMSLP
Scroll to the section labeled "Sheet Music" AFTER clicking on link for the individual sonata (e.g., Piano Sonata No. 1, Op. 2, No. 1 (Beethoven, Ludwig van)). Please note there are many different as well as significant editions in the public domain.