There is a saying, "It is just a guess unless you test." In this case that is true.
I burn a lot of coal (I actually prefer it over
firewood), but there is nothing good in it unlike ash from burning
wood. Depending on whether lignite, soft coal, or anthracite coal was burned, and where it was mined, and what that particular mine had for heavy metals, it could be problematic. But that does not mean that is what the ash is from. If the previous homeowners burned firewood it could be wood ash which would be beneficial too you.
For us coal burners, whether spreading coal ash on a garden does good things or bad is a huge debate. I am firmly entrenched in the camp that it is not, and dispose of it in a separate area.
I would get a soil test so you know. Just because the home had coal stoves in it 150 years ago does not necessarily mean you have a fly ash dump in your backyard though. Either way a $12 soil test will tell you everything you need to know.