You will need to look at the SignTileEntity class to determine what functions are available server-side that lets you access the data you want.
Ok, yes, it's OAK_SIGN. But you can skip that check entirely and just grab the TE at the location. If it is null or not a sign TE, do nothing.