You can use a script task that uses the DirectoryInfo.GetFiles(string) method. You can specify a pattern, such as *.csv. If one or more filenames are returned, the extension is present.
DirectoryInfo.GetFiles Method (String)
Or you could loop over the files and use FileInfo.Extension to get all the extensions of the files in the current directory.
FileSystemInfo.Extension Property