Can I tell if a device has an active Activation Lock before inserting a SIM card?
If you are referring to "Find my iPhone" with "if it's icloud locked":

No, "Find my iPhone" must be turned off on your new iPhone. iTunes doesn't let you restore an iDevice with turned on "Find my iPhone" (on iOS 7 and greater)