the easiest and preferred way is:
ogra@pi3:~$ snap version snap 2.26.1+201705151555.git.d15bf5b~ubuntu16.04.1 snapd 2.26.1+201705151555.git.d15bf5b~ubuntu16.04.1 series 16 kernel 4.4.0-1051-raspi2 ogra@pi3:~$
a slightly more hackish fallback (if you cant exec “snap”) is:
ogra@pi3:~$ cat /usr/lib/snapd/info VERSION=2.26.1+201705151555.git.d15bf5b~ubuntu16.04.1 ogra@pi3:~$