You can use the OBJECTPROPERTY() function in SQL Server to check whether an object is a table-valued function or not.
To do this, pass the object ID as the first argument, and IsTableFunction as the second argument. The function returns a 1 or a 0 depending on whether or not it’s a table-valued function.
A return value of 1 means that it is a table-valued function, and a value of 0 means that it’s not.