The validity period is usually mentioned on the visa document. Depending on the member state for which you have a visa, it may or may not be possible to check the validity online.