Here's a query that will return all tables in your db. You should be able to modify it to suit your purposes:
SELECT MSysObjects.Name, MSysObjects.Type
FROM MSysObjects
WHERE (((MSysObjects.Type)=1 Or (MSysObjects.Type)=4 Or (MSysObjects.Type)=6));
See this
Thread for a list of all of the object types that I have been able to identify.
Type = 1 are local. Type = 4 or 6 are linked.