The first means of finding out if someone has ever been married is to ask them.
If you can't do that, then you have to search the marriage records of the places where that person lived. Modern marriage records may be partially closed for privacy reasons. Older records may be incomplete, poorly indexed, etc. Or you may simply not look in the right place. So you may have to be satisfied with concluding that you could not find a record of marriage.