MediaWiki:Apihelp-query+siteinfo-paramvalue-prop-fileextensions/en

Returns list of file extensions (file types) allowed to be uploaded.